




let p = {
    "id": 125,
    "sex": "男",
    "skill": {
        "tong": 79,
        "wu": 84,
        "zhi": 77,
        "zhen": 55,
        "mei": 71
    },
    "mainType": "霸道",
    "mainCat": "强化鹤翼",
    "catValue": 4,
    "object": null,
    "name": "夏侯霸",
    "prop": ["扫荡", "长驱", "果敢", "辅佐", "惊慌"]
}

// 臧霸，孙观，吴敦，伊礼，昌稀

// 76 75 53 56 70 霸道 军制改革4 臧霸 "山战","林战","金刚","抚慰"
// 71 75 51 39 56 我道 强化锥行3 孙观 "林战","抚慰"
// 71 70 44 35 53 我道 强化长蛇3 昌豨 "山战","粗暴"
// 65 62 49 46 45 霸道 强化长蛇2 吴敦 "山战"
// 61 68 47 44 43 我道 强化长蛇2 尹礼 "山战"

console.log(
    getPoint(p)
);
function getPoint(data) {
    let ret = {
        v1:0, v2:0, v3:0
    }
    ;
    [].includes
    ;
    console.log(data.prop);
    if(data.prop.includes("辅佐") >= 0){ 
        ret.v1 = 10000
    }

    ret.v2 = data.skill.tong + data.skill.wu + data.skill.zhi 

    return ret
}

